/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-03-01 10:18:01
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\form\uiTimePicker.js
 * @CIMC-V2
 */
import { exInput, exSwitch, exTextarea, exSizeSelect, exRadioGroup, exValidateSelect } from '@ve/common/components/extension'
import { translateTitle } from '@/utils/i18n'
export default {
  VERSION: '2022045026',
  type: 'uiTimePicker',
  name: '时间',
  icon: 'time-line',
  //数据集合 表单 列表等等
  data: {
    requestData: {},
  },
  extension: {
    model: exInput('Model', 'time_name'),
    label: exInput('标签', '时间'),
    //rule: exSwitch('验证', false),
    extendRule: exValidateSelect('', {}, []),
    // ...exDivider(0),
    tooltip: { ...exTextarea('弹窗提示', '', '', 3), isSuperior: true },
    width: { ...exInput('宽度', 'auto', '填写数字:单位px,auto:自动宽度'), isSuperior: true },
    labelWidth: { ...exInput('label宽度', 'auto', '填写数字:单位px,auto:自动宽度'), isSuperior: true },
    size: exSizeSelect('尺寸', 'mini'),
    placeholder: exInput('提示', translateTitle('Ve.elements.请输入')),
    selection: exRadioGroup('类型', false, [
      {
        value: false,
        label: '时间',
      },
      {
        value: true,
        label: '时间范围',
      },
    ]),
    disabled: exSwitch('禁用', false),
    hidden: exSwitch('隐藏', false),
    defaultTime: exInput('默认值', '', '请输入时间格式的值: HH:mm:ss; 获取当前时间则输入: #CURRENT_TIME#<br/>时间段默认值请输入: HH:mm:ss, HH:mm:ss'),
    startSuffix: { ...exInput('开始后缀', '_start'), isSuperior: true },
    endSuffix: { ...exInput('结束后缀', '_end'), isSuperior: true },
    ignoreClearValue: { ...exSwitch('忽略清空', false, '开启后清空表单会保留默认值'), isSuperior: true },
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
